package com.itheima.userservice.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.HashMap;
import java.util.Map;

@Component
@FeignClient(name = "order-service",fallbackFactory = OrderfallbackFactory.class)
public interface OrderFeign {

    @PostMapping("/feign/demo001")
    public Integer test(@RequestBody HashMap map);
}
